class Order:
    def __init__(self, name, count, price):
        self.name = name
        self.count = count
        self.price = price
        self.status = False
    def update_count(self, count):
        self.count = count
    def update_status(self):
        self.status = True
    def __str__(self):
        return "Order Name: {}, Count: {}, Price: {}".format(self.name, self.count, self.price)
class OrderSystem:
    def __init__(self):
        self.orders = {}
    def add_order(self, name, count, price):
        if name in self.orders:
            return '商品已存在'
        self.orders[name] = Order(name, count, price)
        return '添加成功'
    def payment_order(self, name):
        if name not in self.orders:
            return '订单不存在'
        self.orders[name].update_status()
        return '支付成功'
    def remove_order(self, name):
        if name in self.orders:
            del self.orders[name]
            return '删除订单成功'
        return '订单不存在'
    def update_count(self, name, count):
        if name in self.orders:
            self.orders[name].update_count(count)
            return '修改数量成功'
        return '商品不存在'
    def get_order(self):
        orders = []
        for name,order in self.orders.items():
            orders.append(str(order))
        return '\n'.join(orders)

if __name__ == '__main__':
    sys = OrderSystem()
    print(sys.add_order('商品1', 12, 100))
    print(sys.add_order('商品1', 12, 100))
    print(sys.add_order('商品2', 10, 100))
    print(sys.add_order('商品3', 10, 100))
    print(sys.payment_order('商品1'))
    print(sys.remove_order('商品2'))
    print(sys.remove_order('商品2'))
    print(sys.payment_order('商品2'))
    print(sys.update_count('商品2',2))
    print(sys.update_count('商品1',2))
    print(sys.get_order())
